{{#banner-message color="bg-warning"}}
  <p>{{t 'banner.globalDnsEntries' htmlSafe=true}}</p>
{{/banner-message}}

<section class="header">
  <h1>
    {{t "globalDnsPage.header"}}
  </h1>


  <div class="right-buttons">
    {{#link-to
       "global-dns.entries.new"
       class="btn btn-sm bg-primary"
       disabled=(rbac-prevents resource="globaldns" scope="global" permission="create")
    }}
      {{t "globalDnsPage.newDns"}}
    {{/link-to}}
  </div>
</section>


{{#sortable-table
   classNames="grid"
   body=rows
   searchText=searchText
   descending=descending
   sortBy=sortBy
   bulkActions=true
   pagingLabel="pagination.cluster"
   headers=headers as |sortable kind entry dt|
}}
  {{#if (eq kind "row")}}
    {{global-dns-entry-row
      entry=entry
    }}
  {{else if (eq kind "nomatch")}}
    <tr>
      <td colspan="{{sortable.fullColspan}}" class="text-center text-muted lacsso pt-20 pb-20">
        {{t "globalDnsPage.noDnsMatch"}}
      </td>
    </tr>
  {{else if (eq kind "norows")}}
    <tr>
      <td colspan="{{sortable.fullColspan}}" class="text-center text-muted lacsso pt-20 pb-20">
        {{t "globalDnsPage.noDnsData"}}
      </td>
    </tr>
  {{/if}}
{{/sortable-table}}
